﻿Imports System.ComponentModel
Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema
Imports System.Globalization
Imports System.Data.Entity

Public Class SalesPromotion
    <Key()> _
    <DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)> _
    Public Property ID As Integer

    Public Property LocationID As Integer
    Public Property Name As String
    Public Property Total As Int64
    Public Property Code As String
    Public Property Image As String
    Public Property StartDate As Date
    Public Property EndDate As Date
    Public Property Active As Boolean
End Class

Public Class SalesPromotionDBContext
    Inherits DbContext
    Public Property SalesPromotions() As DbSet(Of SalesPromotion)
End Class